﻿<%@ Control Language="C#" EnableViewState="true"%>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<script>
    function distr1() {
        document.getElementById("tr1").style.display = 'block';
    }
    window.onload = function aa() {
        var tt = document.getElementById("ctl00_MainerRegion_MCSQBControl___ddl用户类型");
        var t1 = '<%=HttpContext.Current.Request["TYPE"] %>';
        if (t1 != null && t1 != "") {
            if (t1 != "全部")
            { tt.value = t1; }
        }
    };
    function tobeback() {
        var t1 = '<%=HttpContext.Current.Request["TYPE"] %>';
        var t2 = '<%=HttpContext.Current.Request["ROLEID"] %>';
        window.location.href = 'MCSQList.aspx?roleid=' + t2 + '&type=' + escape(t1);
    }
    function checkvalue() {
        var t1 = '';
        t1 = document.getElementById('ctl00_MainerRegion_MCSQBControl___txt申请人姓名').value;
        if (t1 == null || t1 == '') {
            alert('申请人姓名不能为空！');
            return false;
        }
        t1 = document.getElementById('ctl00_MainerRegion_MCSQBControl___txt登录名').value;
        if (t1 == null || t1 == '') {
            alert('登录名不能为空！');
            return false;
        }
        t1 = document.getElementById('ctl00_MainerRegion_MCSQBControl___txt职务').value;
        if (t1 == null || t1 == '') {
            alert('职务不能为空！');
            return false;
        }
        t1 = document.getElementById('ctl00_MainerRegion_MCSQBControl___txt联系电话').value;
        if (t1 == null || t1 == '') {
            alert('联系电话不能为空！');
            return false;
        }

    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font2" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">密钥申请表 </font>
        </td>
    </tr>
</table>
<asp:Panel ID="panel1" runat="server">
<table cellpadding="0" style="width: 98%;" cellspacing="0" border="0" align="center"
    class="window_tab_list">
    <tr>
        <td align="center">
            所属项目
        </td>
        <td colspan="3">
            <asp:DropDownList ID="ddlPID" Width="200" runat="server">
            </asp:DropDownList>
            <asp:TextBox ID="TextBox1" runat="server" Width="60px"></asp:TextBox>    
            <asp:Button ID="Button2" runat="server" Text="查询" />
        </td>
        <td align="center">
            用户类型
        </td>
        <td>
            <asp:DropDownList ID="ddl用户类型" Width="155" runat="server">
                <asp:ListItem Text="监管用户" Value="监管用户"></asp:ListItem>
                <asp:ListItem Text="管理用户" Value="管理用户"></asp:ListItem>
                <asp:ListItem Text="项目用户" Value="项目用户"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="center">
            申请人姓名
        </td>
        <td>
            <asp:TextBox ID="txt申请人姓名" runat="server"></asp:TextBox>
        </td>
        <td align="center">
            登录名
        </td>
        <td>
            <asp:TextBox ID="txt登录名" runat="server"></asp:TextBox>
        </td>
        <td align="center">
            职务
        </td>
        <td>
            <asp:TextBox ID="txt职务" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td align="center">
            权限范围
        </td>
        <td>
            <asp:TextBox ID="txt权限范围" runat="server"></asp:TextBox>
        </td>
        <td align="center">
            密钥
        </td>
        <td>
            <asp:TextBox ID="txt密钥" runat="server" onfocus="this.blur()"></asp:TextBox>
        </td>
        <td align="center">
            联系电话
        </td>
        <td>
            <asp:TextBox ID="txt联系电话" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr id="tr1" style="display:none">
        <td>
            角色选择(用于非区县用户登录时展示)
        </td>
        <td colspan="5">
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="center">
            备注
        </td>
        <td colspan="5">
            <asp:TextBox ID="txt备注" runat="server" Width="400" Height="50"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td colspan="6" align="center">
	<span style=" color:red;">自动生成的密钥是以后用户的登录名，申请用户之后通知征收办，审核会在2-3内完成！</span>
	</br>
            <asp:Button ID="btn_Insert" Text="保存" runat="server" OnClientClick="return checkvalue();" />&nbsp;&nbsp;
            <input id="Button1" type="button" value="返回" onclick="tobeback()" />
        </td>
    </tr>
</table>
<div style="display:none">
    <asp:TextBox ID="txtROLEID" runat="server"></asp:TextBox>
    <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
</div>
    <CBW:MPPersistence ID="Persistence1" runat="server">
    </CBW:MPPersistence>
</asp:Panel>